<%@page import="dier.xuanke"%>
<%@page import="dier.Lesson"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>

         <title>用户选择页面</title>

</head>
<title>顾客功能页</title>
<style type="text/css">
   div {
    margin: 0 660px;
   }
   p {
    display: inline;
   }
   
   h2 {
    text-align: center;
    color: blue;
   }
   .xx{
    height: 1000px;
    width: 500; 
   }
   .ys {
   Font-size:35px;
    color: red;
   }
   .btn{ width:180px; height:30px; }
 </style>
 <body>
 <div class="xx">
  <%
 String Name=null;
 try
 {Name=request.getParameter("tid");}
 catch(Exception e){}
 out.print(Name);
 int arr[]=new int[20];
xuanke xk=new xuanke();
arr=xk.Stuchaxunkebiao(Name);
int i=0;
%>
<table border="1" width="500" cellspacing="0">
           <caption>课程目录</caption>
     <tr>
     		
           <th>开课时间</th>
           <th>开课节次</th>
           <th>课程名称</th>
    </tr>
	<%
	while(arr[i]!=0)
	{
		Lesson ls=new Lesson();
		ls=xk.showkecheng(arr[i]);
		%>
		<tr>
		  <td><% out.print(ls.Ctime);%></td>
		  <td><% out.print(ls.Cmany);%></td>
		  <td><% out.print(ls.Cname);%></td>
		 </tr>                                                                                 
		<%
		i++;
	}
	%>
 </table>
 <a href="Student.jsp"><button class="btn" name="tid" value=<%= "王磊"%>>返回主页面</button></a>
 </div>
 </body>
 </html>